﻿using DataModels.Enums.House;
using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.House
{
    /// <summary>
    /// 房屋认证表
    /// </summary>
    [SugarTable("housecertification")]
    public class HouseCertification
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 房屋UUID
        /// </summary>
        public string HouseUUID { get; set; }

        /// <summary>
        /// 停车场UUID
        /// </summary>
        public string ParkingUUID { get; set; }

        /// <summary>
        /// 认证关系类型
        /// </summary>
        public HousingUserRelationType RelationType { get; set; }

        /// <summary>
        /// 四格资源Id
        /// </summary>
        public int ObjId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 创建人-申请人
        /// </summary>
        public Guid ApplicantUUID { get; set; }

        /// <summary>
        /// 创建人-申请人 临时名称
        /// </summary>
        public string ApplicantTempName { get; set; }

        /// <summary>
        /// 申请人-四格id
        /// </summary>
        public int ApplicantCustId { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        public string ApproverUUID { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 审批状态
        /// </summary>
        public ApprovalStatus Status { get; set; } = ApprovalStatus.PendingApproval;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 资源类型,必填 0-项目,1-房屋,3-车位,
        /// </summary>
        public int RelType { get; set; }


    }
}
